package Work319.Test2;

import java.util.Scanner;

/**
 * @author 张恒冕
 * 2019/3/19 10:22
 */
 class TCL extends TV {
     boolean cloud;
    void yds(){
        System.out.println("是否为云电视");
        Scanner sc=new Scanner(System.in);
        String sf=sc.nextLine();
        if (sf.equals("否")){
            cloud=false;
        } else if (sf.equals("是")) {
            cloud=true;
        }
    }
    @Override
    void output(){
        if (cloud==false){
            System.out.println(getBrand()+"牌电视"+"尺寸为"+getSize());
        }else {
            System.out.println("电视机牌子是"+getBrand()+"尺寸为"+getSize()+"是云电视");
        }
    }


}
